<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="commons/base64.js"></script>
<script type="text/javascript" src="commons/zlib.inflate.min.js"></script>

<!-- <script src="https://raw.github.com/imaya/zlib-comparison/master/zlib.js/inflate.min.js"></script>  -->
<!-- <script src="https://raw.github.com/imaya/zlib-comparison/master/zlib.js/inflate_stream.min.js"></script>  -->
<!-- <script src="https://raw.github.com/imaya/zlib-comparison/master/zlib-js/zlib.js"></script>  -->
<!-- <script src="https://raw.github.com/imaya/zlib-comparison/master/zlib-js/zlib-inflate.js"></script>  -->
<!-- <script src="https://raw.github.com/imaya/zlib-comparison/master/zpipe/zpipe.min.js"></script>  -->
<!-- <script src="https://raw.github.com/imaya/zlib-comparison/master/pdf.js/stream.js"></script>  -->
<!-- <script src="https://raw.github.com/imaya/zlib-comparison/master/jsziptools/dataview.min.js"></script>  -->
<!-- <script src="https://raw.github.com/imaya/zlib-comparison/master/jsziptools/jsziptools.min.js"></script>  -->


<script type="text/javascript">
	window.onload=function(){
// 		var msg = "eNp7OWP/s8XrnnVOfr5u+vNZLS9n7H8xYcXTfdtf4hanPwMAaQB6Ow==";
var msg = "eNp7OWP/iwkrnu7b/nLHwqdTu55N3fCsd93zWS0vcYs/m7b+xb59z2asB3Kfdi142TD/6a5lcPHn6xqeLl0KZD/Z0Yhf8OmGjc86Jj6b0/B0Qt+THQ3P1ix8trX7xfqpicUpGYkZxSnPOiYAbQai5x0bn63dDSEzMhKLM1Kq1Tmy8nRyyxQUinOyc1OKc/NNdBKLDQwKFHKLgUJJCooOyiqqcWpaGprx2vZ2NkrqVrUAT4aN0Q==";
// 		var data = window.atob("eNp7OWP/s8XrnnVOfr5u+vNZLS9n7H8xYcXTfdtf4hanPwMAaQB6Ow==");
// 		var decompressed = new Zlib.Inflate(new Buffer("eJzVzM0KQEAYRuHJ38LCv7CVQbn/+3PUp96NGll560kzc+LcvzeIkE0iZAVKVHaeH7rWvpuIESFBikzau1+xW69rrLnePBa796LGgREdeuvzl/2X/5+q7QaO", "base64")).decompress();
// 		alert(decompressed );
// alert(11);
// var data = window.atob("eJzVzM0KQEAYRuHJ38LCv7CVQbn/+3PUp96NGll560kzc+LcvzeIkE0iZAVKVHaeH7rWvpuIESFBikzau1+xW69rrLnePBa796LGgREdeuvzl/2X/5+q7QaO").split('').map(function(e){ return e.charCodeAt(0); });
 var data = window.atob(msg).split('').map(function(v){ 
	 return v.charCodeAt(0);
	 });
var decompressed = new Zlib.Inflate(data).decompress();
// var rbuf = new ByteBuffer(decompressed.buffer.join());
//  var dataview = new DataView(buffer);
//             var ints = new Uint8Array(buffer.byteLength);
//             for (var i = 0; i < ints.length; i++) {
//                 ints[i] = dataview.getUint8(i);
//             }
document.getElementById("a1").innerHTML=decompressed.toString();
document.getElementById("a2").innerHTML=String.fromCharCode(parseInt('0068',16));
// document.getElementById("a3").innerHTML=(JSON.stringify(Array.prototype.slice.call(new Uint32Array(decompressed.buffer, 0, decompressed.length / 4))));
document.getElementById("a4").innerHTML=Array.prototype.slice.call(new Uint32Array(decompressed.buffer, 0, decompressed.length / 4));
var sucArr = (JSON.stringify(Array.prototype.slice.call(new Uint32Array(decompressed.buffer, 0, decompressed.length / 4))));

document.getElementById("a3").innerHTML=sucArr;
var tmpStr = "";
for(var i=0;i<decompressed.length;i++){
	
	tmpStr=tmpStr+('00'+decompressed[i].toString(16)).slice(-2);
// 	tmpStr=tmpStr+('00000000'+sucArr[i].toString(16)).slice(-8);
}
document.getElementById("a5").innerHTML=tmpStr;
// var msg  = "WzEyMCwgLTM4LCAxMjMsIDU3LCA5OSwgLTEsIC03NywgLTU5LCAtMjEsIC05OCwgMTE3LCA3OCwgMTI2LCAtNjYsIDExMCwgLTYsIC0xMywgODksIDQ1LCA0NywgMTAzLCAtMjAsIDEyNywgNDksIDk3LCAtNTksIC00NSwgMTI1LCAtMzcsIDk1LCAtMzAsIDIyLCAtODksIDYzLCAzLCAwLCAxMDUsIDAsIDEyMiwgNTld";
// 		var msg1="6Zi/5qOu5omT566X55qE6Zi/6JCo5b636Zi/5qOu5omT566X55qE6Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b636Zi/6JCo5b63";
// 		alert(Base64.decode(msg1));
// 		var compressed = Base64.decode(msg);
// 		alert(compressed);
// 		var inflate = new Zlib.Inflate(Base64.decode(msg));
// 		var plain = inflate.decompress();
// 		var plain = Zlib.InflateStream().decompress(compressed);

// var msg = "eO+/vXs5Y++/ve+/ve+/ve+/vXVOfu+/vW7vv73vv71ZLS9n77+9fzFh77+977+9fe+/vV/vv70W77+9PwMAaQB6Ow==";
// var dataArray = toArray(Base64.decode(msg));
// if (typeof Uint8Array === 'function') {
// 	  dataArray = new Uint8Array(dataArray);
// 	}
// document.getElementById("a1").innerHTML=(new Zlib.Inflate(dataArray)).decompress();
// document.getElementById("a2").innerHTML=new Zlib.InflateStream().decompress(dataArray);
// document.getElementById("a3").innerHTML=ZLIB.inflateInit().inflate(dataArray);
// document.getElementById("a4").innerHTML=new FlateStream(new Stream(dataArray)).getBytes();
// document.getElementById("a5").innerHTML=jz.zlib.decompress(dataArray);
// document.getElementById("a6").innerHTML=zpipe.inflate(dataArray);
// document.getElementById("a7").innerHTML=(new JXG.Util.Unzip(dataArray)).unzip();

		
	}
	function toArray(str) {
		  var i;
		  var il;
		  var array = new Array(str.length);

		  for (i = 0, il = str.length; i < il; ++i) {
		    array[i] = str.charCodeAt(i);
		  }

		  return array;
		}
	//https://github.com/imaya/zlib.js/tree/master/bin
	//https://github.com/imaya/zlib.js/issues/7
</script>
</head>
<body>
<p id="a1"></p><br/>
<p id="a2"></p><br/>
<p id="a3"></p><br/>
<p id="a4"></p><br/>
<p id="a5"></p><br/>
<p id="a6"></p><br/>
<p id="a7"></p><br/>

</body>
</html>